package com.test;

import com.nebula.common.common.BaseResponse;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;
import java.util.Map;

/**
 * @author fengyexjtu@126.com
 * @since 2025-01-08
 */
@SpringBootApplication
public class Application {
    public static void main(String[] args) {
        SpringApplication.run(Application.class, args);
    }
    
    @RestController
    @RequestMapping("/test")
    class DemoController {
        @GetMapping
        public BaseResponse<Map<String, String>> test() {
            Map<String, String> result = new HashMap<>();
            result.put("code", "0");
            return BaseResponse.success(result);
        }
    }
}
